package model;

public class Terrain extends GameObject{
	enum terrainType {GRASS, WATER, MOUNTAINS};
	private terrainType myType;
	
	public boolean canPass(Entity e)
	{
		switch (myType){
		case GRASS: return(true);
		case WATER: return(e.canSwim());
		case MOUNTAINS: return(e.canClimb());
		default: return(false);
		}
	}

	public terrainType getMyType() {
		return myType;
	}

	public void setMyType(terrainType myType) {
		this.myType = myType;
	}
}
